package com.kifas.model.xml;

import java.io.Serializable;
import java.util.Date;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;

/**
 * @author brainmaster
 * 
 */
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class KontrakPembelianModel implements Serializable {

	private static final long serialVersionUID = 4900697638777425286L;

	private Long idKontrakPembelian;

	private String nomorKontrakPembelian;

	@XmlElement(name = "barangModel", type = BarangModel.class)
	private BarangModel barang;

	private boolean closed;

	private Integer qty;

	private Date tanggalKirim;
	
	private String createdBy;
	
	private Date createdDate;

	public KontrakPembelianModel() {
	}

	public KontrakPembelianModel(Long idKontrakPembelian, BarangModel barang,
			boolean closed, Integer qty, Date tanggalKirim,
			String nomorKontrakPembelian, String createdBy, Date createdDate) {
		this.idKontrakPembelian = idKontrakPembelian;
		this.barang = barang;
		this.closed = closed;
		this.qty = qty;
		this.tanggalKirim = tanggalKirim;
		this.nomorKontrakPembelian = nomorKontrakPembelian;
		this.createdBy = createdBy;
		this.createdDate = createdDate;
	}

	public Long getIdKontrakPembelian() {
		return idKontrakPembelian;
	}

	public void setIdKontrakPembelian(Long idKontrakPembelian) {
		this.idKontrakPembelian = idKontrakPembelian;
	}

	public BarangModel getBarang() {
		return barang;
	}

	public void setBarang(BarangModel barang) {
		this.barang = barang;
	}

	public boolean isClosed() {
		return closed;
	}

	public void setClosed(boolean closed) {
		this.closed = closed;
	}

	public Integer getQty() {
		return qty;
	}

	public void setQty(Integer qty) {
		this.qty = qty;
	}

	public Date getTanggalKirim() {
		return tanggalKirim;
	}

	public void setTanggalKirim(Date tanggalKirim) {
		this.tanggalKirim = tanggalKirim;
	}

	public String getNomorKontrakPembelian() {
		return nomorKontrakPembelian;
	}

	public void setNomorKontrakPembelian(String nomorKontrakPembelian) {
		this.nomorKontrakPembelian = nomorKontrakPembelian;
	}

	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}

	public String getCreatedBy() {
		return createdBy;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

}
